using System;
using AndyPike.Unfuddle.Contracts;
using AndyPike.Unfuddle.Entities;
using NUnit.Framework;

namespace AndyPike.Unfuddle.Tests.Unit.Entities
{
    [TestFixture]
    public class When_using_the_errors_collection
    {
        [Test]
        [ExpectedException(typeof(NotSupportedException))]
        public void Should_throw_a_not_supported_exception_when_validating()
        {
            var errors = new ErrorsCollection();
            errors.Validate(EntityValidationContext.None);
        }
    }
}